package com.woniu.stafforder.entity.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@NoArgsConstructor
@Data
public class OrderEchartsCountDTO {
    @Id
    private Long id;
    @Field(index = true, analyzer = "ik_smart",searchAnalyzer = "ik_smart", type = FieldType.Integer)
    private Integer sourceId;
    @Field(index = true, analyzer = "ik_smart",searchAnalyzer = "ik_smart", type = FieldType.Keyword)
    private String orderTypeName;
    private Long count;
    private String serviceName;


    public OrderEchartsCountDTO(Integer sourceId, String orderTypeName, Long count,String serviceName) {
        this.serviceName = serviceName;
        this.sourceId = sourceId;
        this.orderTypeName = orderTypeName;
        this.count = count;
    }
}